home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / VBASIC / ATT.ZIP / ALERTS.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-04-13  |  20.6 KB  |  658 lines

  1. VERSION 2.00
  2. Begin Form AlertsForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Alerts"
  6.    ClientHeight    =   4965
  7.    ClientLeft      =   2655
  8.    ClientTop       =   2520
  9.    ClientWidth     =   5070
  10.    ControlBox      =   0   'False
  11.    Height          =   5400
  12.    Left            =   2580
  13.    LinkTopic       =   "Form2"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4965
  17.    ScaleWidth      =   5070
  18.    Top             =   2160
  19.    Width           =   5220
  20.    Begin TextBox WarningMess 
  21.       BackColor       =   &H00FFFFFF&
  22.       Height          =   312
  23.       Index           =   2
  24.       Left            =   960
  25.       MultiLine       =   -1  'True
  26.       TabIndex        =   21
  27.       Text            =   "Eek!"
  28.       Top             =   3780
  29.       Width           =   3612
  30.    End
  31.    Begin TextBox WarningMess 
  32.       BackColor       =   &H00FFFFFF&
  33.       Height          =   312
  34.       Index           =   1
  35.       Left            =   960
  36.       MultiLine       =   -1  'True
  37.       TabIndex        =   20
  38.       Text            =   "Warning:"
  39.       Top             =   3360
  40.       Width           =   3612
  41.    End
  42.    Begin TextBox WarningMess 
  43.       BackColor       =   &H00FFFFFF&
  44.       Height          =   312
  45.       Index           =   0
  46.       Left            =   960
  47.       MultiLine       =   -1  'True
  48.       TabIndex        =   19
  49.       Text            =   "OK"
  50.       Top             =   2940
  51.       Width           =   3612
  52.    End
  53.    Begin TextBox WarningVal 
  54.       Alignment       =   1  'Right Justify
  55.       BackColor       =   &H00FFFFFF&
  56.       ForeColor       =   &H00000000&
  57.       Height          =   315
  58.       Index           =   6
  59.       Left            =   3600
  60.       MultiLine       =   -1  'True
  61.       TabIndex        =   2
  62.       Text            =   "0"
  63.       Top             =   480
  64.       Width           =   972
  65.    End
  66.    Begin TextBox WarningVal 
  67.       Alignment       =   1  'Right Justify
  68.       BackColor       =   &H00FFFFFF&
  69.       ForeColor       =   &H00000000&
  70.       Height          =   315
  71.       Index           =   7
  72.       Left            =   3600
  73.       MultiLine       =   -1  'True
  74.       TabIndex        =   5
  75.       Text            =   "0"
  76.       Top             =   900
  77.       Width           =   972
  78.    End
  79.    Begin TextBox WarningVal 
  80.       Alignment       =   1  'Right Justify
  81.       BackColor       =   &H00FFFFFF&
  82.       ForeColor       =   &H00000012&
  83.       Height          =   315
  84.       Index           =   8
  85.       Left            =   3600
  86.       MultiLine       =   -1  'True
  87.       TabIndex        =   8
  88.       Text            =   "0"
  89.       Top             =   1200
  90.       Width           =   972
  91.    End
  92.    Begin TextBox WarningVal 
  93.       Alignment       =   1  'Right Justify
  94.       BackColor       =   &H00FFFFFF&
  95.       ForeColor       =   &H00000000&
  96.       Height          =   315
  97.       Index           =   9
  98.       Left            =   3600
  99.       MultiLine       =   -1  'True
  100.       TabIndex        =   11
  101.       Text            =   "0"
  102.       Top             =   1680
  103.       Width           =   972
  104.    End
  105.    Begin TextBox WarningVal 
  106.       Alignment       =   1  'Right Justify
  107.       BackColor       =   &H00FFFFFF&
  108.       ForeColor       =   &H00000000&
  109.       Height          =   315
  110.       Index           =   10
  111.       Left            =   3600
  112.       MultiLine       =   -1  'True
  113.       TabIndex        =   14
  114.       Text            =   "0"
  115.       Top             =   1980
  116.       Width           =   972
  117.    End
  118.    Begin TextBox WarningVal 
  119.       Alignment       =   1  'Right Justify
  120.       BackColor       =   &H00FFFFFF&
  121.       ForeColor       =   &H00000000&
  122.       Height          =   315
  123.       Index           =   11
  124.       Left            =   3600
  125.       MultiLine       =   -1  'True
  126.       TabIndex        =   17
  127.       Text            =   "0"
  128.       Top             =   2280
  129.       Width           =   972
  130.    End
  131.    Begin TextBox WarningVal 
  132.       Alignment       =   1  'Right Justify
  133.       BackColor       =   &H00FFFFFF&
  134.       Height          =   315
  135.       Index           =   5
  136.       Left            =   2160
  137.       MultiLine       =   -1  'True
  138.       TabIndex        =   16
  139.       Text            =   "0"
  140.       Top             =   2280
  141.       Width           =   972
  142.    End
  143.    Begin TextBox WarningVal 
  144.       Alignment       =   1  'Right Justify
  145.       BackColor       =   &H00FFFFFF&
  146.       Height          =   315
  147.       Index           =   4
  148.       Left            =   2160
  149.       MultiLine       =   -1  'True
  150.       TabIndex        =   13
  151.       Text            =   "0"
  152.       Top             =   1980
  153.       Width           =   972
  154.    End
  155.    Begin TextBox WarningVal 
  156.       Alignment       =   1  'Right Justify
  157.       BackColor       =   &H00FFFFFF&
  158.       Height          =   315
  159.       Index           =   3
  160.       Left            =   2160
  161.       MultiLine       =   -1  'True
  162.       TabIndex        =   10
  163.       Text            =   "0"
  164.       Top             =   1680
  165.       Width           =   972
  166.    End
  167.    Begin TextBox WarningVal 
  168.       Alignment       =   1  'Right Justify
  169.       BackColor       =   &H00FFFFFF&
  170.       Height          =   315
  171.       Index           =   2
  172.       Left            =   2160
  173.       MultiLine       =   -1  'True
  174.       TabIndex        =   7
  175.       Text            =   "0"
  176.       Top             =   1200
  177.       Width           =   972
  178.    End
  179.    Begin TextBox WarningVal 
  180.       Alignment       =   1  'Right Justify
  181.       BackColor       =   &H00FFFFFF&
  182.       Height          =   315
  183.       Index           =   1
  184.       Left            =   2160
  185.       MultiLine       =   -1  'True
  186.       TabIndex        =   4
  187.       Text            =   "0"
  188.       Top             =   900
  189.       Width           =   972
  190.    End
  191.    Begin TextBox WarningVal 
  192.       Alignment       =   1  'Right Justify
  193.       BackColor       =   &H00FFFFFF&
  194.       ForeColor       =   &H00000000&
  195.       Height          =   315
  196.       Index           =   0
  197.       Left            =   2160
  198.       MultiLine       =   -1  'True
  199.       TabIndex        =   1
  200.       Text            =   "0"
  201.       Top             =   480
  202.       Width           =   972
  203.    End
  204.    Begin SSCheck Check3D1 
  205.       Caption         =   "&GDI"
  206.       ForeColor       =   &H00000000&
  207.       Height          =   315
  208.       Index           =   5
  209.       Left            =   480
  210.       TabIndex        =   15
  211.       Top             =   2256
  212.       Width           =   732
  213.    End
  214.    Begin SSCheck Check3D1 
  215.       Caption         =   "&Memory"
  216.       ForeColor       =   &H00000000&
  217.       Height          =   315
  218.       Index           =   1
  219.       Left            =   480
  220.       TabIndex        =   3
  221.       Top             =   900
  222.       Width           =   1080
  223.    End
  224.    Begin SSCheck Check3D1 
  225.       Caption         =   "&Resources"
  226.       ForeColor       =   &H00000000&
  227.       Height          =   315
  228.       Index           =   3
  229.       Left            =   480
  230.       TabIndex        =   9
  231.       Top             =   1656
  232.       Width           =   1215
  233.    End
  234.    Begin SSCheck Check3D1 
  235.       Caption         =   "Dis&k Space"
  236.       ForeColor       =   &H00000000&
  237.       Height          =   315
  238.       Index           =   0
  239.       Left            =   480
  240.       TabIndex        =   0
  241.       Top             =   480
  242.       Width           =   1212
  243.    End
  244.    Begin SSCheck Check3D1 
  245.       Caption         =   "Largest &B-lock"
  246.       ForeColor       =   &H00000000&
  247.       Height          =   315
  248.       Index           =   2
  249.       Left            =   480
  250.       TabIndex        =   6
  251.       Top             =   1200
  252.       Width           =   1545
  253.    End
  254.    Begin SSCheck Check3D1 
  255.       Caption         =   "&User"
  256.       ForeColor       =   &H00000000&
  257.       Height          =   315
  258.       Index           =   4
  259.       Left            =   480
  260.       TabIndex        =   12
  261.       Top             =   1956
  262.       Width           =   780
  263.    End
  264.    Begin CommandButton Command3 
  265.       Cancel          =   -1  'True
  266.       Caption         =   "Cancel"
  267.       Height          =   330
  268.       Left            =   2640
  269.       TabIndex        =   23
  270.       Top             =   4368
  271.       Width           =   1215
  272.    End
  273.    Begin CommandButton Command1 
  274.       Caption         =   "OK"
  275.       Default         =   -1  'True
  276.       Height          =   330
  277.       Left            =   1200
  278.       TabIndex        =   22
  279.       Top             =   4380
  280.       Width           =   1215
  281.    End
  282.    Begin Image Image1 
  283.       Height          =   252
  284.       Index           =   2
  285.       Left            =   0
  286.       Top             =   0
  287.       Visible         =   0   'False
  288.       Width           =   252
  289.    End
  290.    Begin Image Image1 
  291.       Height          =   252
  292.       Index           =   5
  293.       Left            =   480
  294.       Top             =   2940
  295.       Width           =   252
  296.    End
  297.    Begin Image Image1 
  298.       Height          =   252
  299.       Index           =   4
  300.       Left            =   480
  301.       Top             =   3780
  302.       Width           =   240
  303.    End
  304.    Begin Image Image1 
  305.       Height          =   252
  306.       Index           =   3
  307.       Left            =   480
  308.       Top             =   3360
  309.       Width           =   240
  310.    End
  311.    Begin Label Label2 
  312.       AutoSize        =   -1  'True
  313.       BackColor       =   &H00C0C0C0&
  314.       BackStyle       =   0  'Transparent
  315.       Caption         =   "&Legend"
  316.       Height          =   192
  317.       Index           =   15
  318.       Left            =   480
  319.       TabIndex        =   18
  320.       Top             =   2700
  321.       Width           =   636
  322.    End
  323.    Begin Label Label2 
  324.       AutoSize        =   -1  'True
  325.       BackColor       =   &H00C0C0C0&
  326.       BackStyle       =   0  'Transparent
  327.       Caption         =   "%"
  328.       Height          =   192
  329.       Index           =   13
  330.       Left            =   4596
  331.       TabIndex        =   37
  332.       Top             =   2340
  333.       Width           =   168
  334.    End
  335.    Begin Label Label2 
  336.       AutoSize        =   -1  'True
  337.       BackColor       =   &H00C0C0C0&
  338.       BackStyle       =   0  'Transparent
  339.       Caption         =   "%"
  340.       Height          =   192
  341.       Index           =   12
  342.       Left            =   4596
  343.       TabIndex        =   36
  344.       Top             =   2040
  345.       Width           =   168
  346.    End
  347.    Begin Label Label2 
  348.       AutoSize        =   -1  'True
  349.       BackColor       =   &H00C0C0C0&
  350.       BackStyle       =   0  'Transparent
  351.       Caption         =   "%"
  352.       Height          =   192
  353.       Index           =   11
  354.       Left            =   4596
  355.       TabIndex        =   35
  356.       Top             =   1740
  357.       Width           =   168
  358.    End
  359.    Begin Label Label2 
  360.       AutoSize        =   -1  'True
  361.       BackColor       =   &H00C0C0C0&
  362.       BackStyle       =   0  'Transparent
  363.       Caption         =   "k"
  364.       Height          =   192
  365.       Index           =   10
  366.       Left            =   4596
  367.       TabIndex        =   34
  368.       Top             =   1260
  369.       Width           =   108
  370.    End
  371.    Begin Label Label2 
  372.       AutoSize        =   -1  'True
  373.       BackColor       =   &H00C0C0C0&
  374.       BackStyle       =   0  'Transparent
  375.       Caption         =   "k"
  376.       Height          =   192
  377.       Index           =   9
  378.       Left            =   4596
  379.       TabIndex        =   33
  380.       Top             =   960
  381.       Width           =   108
  382.    End
  383.    Begin Label Label2 
  384.       AutoSize        =   -1  'True
  385.       BackColor       =   &H00C0C0C0&
  386.       BackStyle       =   0  'Transparent
  387.       Caption         =   "k"
  388.       Height          =   192
  389.       Index           =   8
  390.       Left            =   4596
  391.       TabIndex        =   32
  392.       Top             =   540
  393.       Width           =   108
  394.    End
  395.    Begin Label Label2 
  396.       AutoSize        =   -1  'True
  397.       BackColor       =   &H00C0C0C0&
  398.       BackStyle       =   0  'Transparent
  399.       Caption         =   "%"
  400.       Height          =   192
  401.       Index           =   7
  402.       Left            =   3156
  403.       TabIndex        =   31
  404.       Top             =   2340
  405.       Width           =   168
  406.    End
  407.    Begin Label Label2 
  408.       AutoSize        =   -1  'True
  409.       BackColor       =   &H00C0C0C0&
  410.       BackStyle       =   0  'Transparent
  411.       Caption         =   "%"
  412.       Height          =   192
  413.       Index           =   6
  414.       Left            =   3156
  415.       TabIndex        =   30
  416.       Top             =   2040
  417.       Width           =   168
  418.    End
  419.    Begin Label Label2 
  420.       AutoSize        =   -1  'True
  421.       BackColor       =   &H00C0C0C0&
  422.       BackStyle       =   0  'Transparent
  423.       Caption         =   "%"
  424.       Height          =   192
  425.       Index           =   5
  426.       Left            =   3156
  427.       TabIndex        =   29
  428.       Top             =   1740
  429.       Width           =   168
  430.    End
  431.    Begin Label Label2 
  432.       AutoSize        =   -1  'True
  433.       BackColor       =   &H00C0C0C0&
  434.       BackStyle       =   0  'Transparent
  435.       Caption         =   "k"
  436.       Height          =   192
  437.       Index           =   4
  438.       Left            =   3156
  439.       TabIndex        =   28
  440.       Top             =   1260
  441.       Width           =   108
  442.    End
  443.    Begin Label Label2 
  444.       AutoSize        =   -1  'True
  445.       BackColor       =   &H00C0C0C0&
  446.       BackStyle       =   0  'Transparent
  447.       Caption         =   "k"
  448.       Height          =   192
  449.       Index           =   3
  450.       Left            =   3156
  451.       TabIndex        =   27
  452.       Top             =   960
  453.       Width           =   108
  454.    End
  455.    Begin Label Label2 
  456.       AutoSize        =   -1  'True
  457.       BackColor       =   &H00C0C0C0&
  458.       BackStyle       =   0  'Transparent
  459.       Caption         =   "k"
  460.       Height          =   192
  461.       Index           =   2
  462.       Left            =   3156
  463.       TabIndex        =   26
  464.       Top             =   540
  465.       Width           =   108
  466.    End
  467.    Begin Label Label2 
  468.       AutoSize        =   -1  'True
  469.       BackColor       =   &H00C0C0C0&
  470.       BackStyle       =   0  'Transparent
  471.       Caption         =   "Alert"
  472.       Height          =   192
  473.       Index           =   1
  474.       Left            =   4080
  475.       TabIndex        =   24
  476.       Top             =   240
  477.       Width           =   396
  478.    End
  479.    Begin Label Label2 
  480.       AutoSize        =   -1  'True
  481.       BackColor       =   &H00C0C0C0&
  482.       BackStyle       =   0  'Transparent
  483.       Caption         =   "Warning"
  484.       Height          =   192
  485.       Index           =   0
  486.       Left            =   2400
  487.       TabIndex        =   25
  488.       Top             =   240
  489.       Width           =   492
  490.    End
  491.    Begin Image Image1 
  492.       Height          =   252
  493.       Index           =   1
  494.       Left            =   3840
  495.       Top             =   240
  496.       Width           =   240
  497.    End
  498.    Begin Image Image1 
  499.       Height          =   252
  500.       Index           =   0
  501.       Left            =   2160
  502.       Top             =   240
  503.       Width           =   252
  504.    End
  505. Option Explicit
  506. Sub Check3D1_Click (Index As Integer, Value As Integer)
  507. WarningVal(Index).Enabled = Value
  508. WarningVal(Index + gAlertItems).Enabled = Value
  509. If Value Then
  510.    WarningVal(Index).ForeColor = 0
  511.    WarningVal(Index + gAlertItems).ForeColor = 0
  512.    WarningVal(Index).ForeColor = &HC0C0C0
  513.    WarningVal(Index + gAlertItems).ForeColor = &HC0C0C0
  514. End If
  515. If Index = 1 Then
  516.    Check3d1(2).Enabled = Value
  517.    If Value And Check3d1(2).Value Then
  518.       WarningVal(2).ForeColor = 0
  519.       WarningVal(2 + gAlertItems).ForeColor = 0
  520.    Else
  521.       WarningVal(2).ForeColor = &HC0C0C0
  522.       WarningVal(2 + gAlertItems).ForeColor = &HC0C0C0
  523.    End If
  524. End If
  525. If Index = 3 Then
  526.    Check3d1(4).Enabled = Not Value
  527.    Check3d1(5).Enabled = Not Value
  528.    If Value Then
  529.       Check3d1(4).Value = False
  530.       Check3d1(5).Value = False
  531.    End If
  532. End If
  533. End Sub
  534. Sub Command1_Click ()
  535. Dim I%, J%
  536. For I% = 0 To gAlertItems * 2 - 1
  537.    Call Refm(I%, True)
  538. Next I%
  539. For I% = 0 To gAlertItems - 1
  540.    If Check3d1(I%).Value And Check3d1(I%).Enabled Then
  541.       If Val(WarningVal(I%).Text) < Val(WarningVal(I% + gAlertItems).Text) Then
  542.          MsgBox "Alert value is greater then warning value", 48
  543.          WarningVal(I%).SetFocus
  544.          Exit Sub
  545.       End If
  546.    End If
  547. Next I%
  548. For I% = 0 To gAlertItems - 1
  549. For J% = 0 To 1
  550.       gWarningLevels(I%, J%) = Val(WarningVal(I% + (J% * gAlertItems)).Text)
  551. Next J%
  552. Next I%
  553. For I% = 0 To gAlertItems - 1
  554.     gWarning(I%) = Check3d1(I%).Value And Check3d1(I%).Enabled
  555. Next I%
  556. For J% = 0 To 2
  557.     gWarningMessages(J%) = WarningMess(J%).Text
  558. Next J%
  559. Unload Me
  560. End Sub
  561. Sub Command3_Click ()
  562.    'Cancel
  563.    Unload Me
  564. End Sub
  565. Sub Form_Load ()
  566. Dim T$
  567. Dim I%
  568. Dim J%
  569. For I% = 0 To gAlertItems - 1
  570.    Check3d1(I%).Value = True
  571. Next I%
  572. For I% = 0 To gAlertItems - 1
  573.    Check3d1(I%).Value = False
  574. Next I%
  575.    Image1(0).Picture = AllTheTime.MoonSun.GraphicCell(44)
  576.    Image1(1).Picture = AllTheTime.MoonSun.GraphicCell(49)
  577.    Image1(2).Picture = AllTheTime.MoonSun.GraphicCell(43)
  578.    For I% = 0 To 2
  579.       T$ = Label2(I%).Caption
  580.       Label2(I%).Caption = ""  'autosize?
  581.       Label2(I%).Caption = T$  'autosize?
  582.       WarningMess(I%).Text = gWarningMessages(I%)
  583.       Image1(I% + 3).Picture = Image1(I%).Picture
  584.    Next I%
  585.    'Label2(1).Caption = Label2(1).Caption
  586.    Label2(0).Left = WarningVal(0).Left + WarningVal(0).Width - Label2(0).Width
  587.    Label2(1).Left = WarningVal(gAlertItems).Left + WarningVal(gAlertItems).Width - Label2(1).Width
  588.    Image1(0).Left = Label2(0).Left - Image1(0).Width - 30
  589.    Image1(1).Left = Label2(1).Left - Image1(1).Width - 30
  590.    'Image1(2).Left = Check3d1(1).Left
  591.    'Label2(2).Left = Image1(2).Left + Image1(2).Width + 30
  592.    'Image1(2).Top = Image1(0).Top
  593.    'If Label2(0).Left + Label2(0).Width + 120 > Image1(1).Left Then
  594.    '   Image1(1).Left = Label2(0).Left + Label2(0).Width + 120
  595.    '   Label2(1).Left = Image1(1).Left + Image1(1).Width
  596.    'End If
  597.    ''Image1(0).BorderStyle = 1
  598.    ''Image1(1).BorderStyle = 1
  599.    ''Label2(0).FontSize = 24
  600.    Label2(0).Top = Image1(0).Top + (Image1(0).Height - Label2(0).Height) \ 2
  601.    Label2(1).Top = Image1(1).Top + (Image1(1).Height - Label2(1).Height) \ 2
  602.    'Label2(2).Top = Image1(2).Top + (Image1(2).Height - Label2(2).Height) \ 2
  603.    Image1(5).Top = WarningMess(0).Top + (WarningMess(0).Height - Image1(5).Height) \ 2
  604.    WarningMess(0).Left = Image1(5).Left + Image1(5).Width + 30
  605.    Image1(3).Top = WarningMess(1).Top + (WarningMess(1).Height - Image1(3).Height) \ 2
  606.    WarningMess(1).Left = Image1(3).Left + Image1(3).Width + 30
  607.    Image1(4).Top = WarningMess(2).Top + (WarningMess(2).Height - Image1(4).Height) \ 2
  608.    WarningMess(2).Left = Image1(4).Left + Image1(4).Width + 30
  609.    WarningMess(0).Width = (WarningVal(gAlertItems).Left + WarningVal(gAlertItems).Width) - WarningMess(0).Left
  610.    WarningMess(1).Width = WarningMess(0).Width
  611.    WarningMess(2).Width = WarningMess(0).Width
  612.    AlertsForm.Left = Screen.Width / 2 - (AlertsForm.Width / 2)
  613.    AlertsForm.Top = Screen.Height / 2 - (AlertsForm.Height / 2)
  614. For I% = 0 To gAlertItems - 1
  615. For J% = 0 To 1
  616.       WarningVal(I% + (J% * gAlertItems)).Text = gWarningLevels(I%, J%)
  617. Next J%
  618. Next I%
  619. For I% = 0 To gAlertItems * 2 - 1
  620.    Call Refm(I%, False)
  621. Next I%
  622. For I% = 0 To gAlertItems - 1
  623.    Check3d1(I%).Value = gWarning(I%)
  624. Next I%
  625. End Sub
  626. Sub Refm (Index As Integer, gf As Integer)
  627.    Select Case Index
  628.       Case 0, 1, 2, 0 + gAlertItems, 1 + gAlertItems, 2 + gAlertItems:
  629.          If gf Then
  630.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "general number")
  631.          Else
  632.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "#,##0")
  633.          End If
  634.       Case 3, 4, 5, 3 + gAlertItems, 4 + gAlertItems, 5 + gAlertItems:
  635.          If WarningVal(Index).Text > 100 Then WarningVal(Index).Text = 100
  636.          If gf Then
  637.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "general number")
  638.          Else
  639.             WarningVal(Index).Text = Format$(WarningVal(Index).Text, "#,##0")
  640.          End If
  641.    End Select
  642. End Sub
  643. Sub WarningMess_GotFocus (Index As Integer)
  644. WarningMess(Index).SelStart = 0
  645. WarningMess(Index).SelLength = 30000
  646. End Sub
  647. Sub WarningVal_GotFocus (Index As Integer)
  648. Call Refm(Index, True)
  649. WarningVal(Index).SelStart = 0
  650. WarningVal(Index).SelLength = 30000
  651. End Sub
  652. Sub WarningVal_KeyPress (Index As Integer, KeyAscii As Integer)
  653. If ((Chr$(KeyAscii) < "0") Or (Chr$(KeyAscii) > "9")) And (Chr$(KeyAscii) <> ",") And (KeyAscii <> 8) Then KeyAscii = 0
  654. End Sub
  655. Sub WarningVal_LostFocus (Index As Integer)
  656. Call Refm(Index, False)
  657. End Sub
  658.